home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-MIME.STX < prev    next >
Encoding:
Text File  |  2000-10-12  |  2.5 KB  |  81 lines

  1. mime: Formats data with MIME
  2.  
  3.     The 'mime' tag allows you to create MIME encoded data. It is
  4.     chiefly used to format email inside the 'sendmail' tag.
  5.  
  6.   Syntax
  7.  
  8.     'mime' tag syntax::
  9.  
  10.       <dtml-mime>
  11.       [<dtml-boundry>]
  12.       ...
  13.       </dtml-mime>
  14.  
  15.     The 'mime' tag is a block tag. The block is can be divided by one
  16.     or more 'boundry' tags to create a multi-part MIME message. 'mime'
  17.     tags may be nested. The 'mime' tag is most often used inside the
  18.     'sendmail' tag.
  19.  
  20.   Attributes
  21.  
  22.     Both the 'mime' and 'boundry' tags
  23.     have the same attributes.
  24.  
  25.       encode=string -- MIME Content-Transfer-Encoding header, defaults
  26.       to 'base64'.  Valid encoding options include 'base64',
  27.       'quoted-printable', 'uuencode', 'x-uuencode', 'uue', 'x-uue',
  28.       and '7bit'.  If the 'encode' attribute is set to '7bit' no
  29.       encoding is done on the block and the data is assumed to be in a
  30.       valid MIME format.
  31.  
  32.       type=string -- MIME Content-Type header.
  33.  
  34.       type_expr=string -- MIME Content-Type header as a variable
  35.       expression. You cannot use both 'type' and 'type_expr'.
  36.  
  37.       name=string -- MIME Content-Type header name.
  38.  
  39.       name_expr=string -- MIME Content-Type header name as a variable
  40.       expression. You cannot use both 'name' and 'name_expr'.
  41.  
  42.       disposition=string -- MIME Content-Disposition header.
  43.  
  44.       disposition_expr=string -- MIME Content-Disposition header as a
  45.       variable expression. You cannot use both 'disposition' and
  46.       'disposition_expr'.
  47.  
  48.       filename=string -- MIME Content-Disposition header filename.
  49.  
  50.       filename_expr=string -- MIME Content-Disposition header filename
  51.       as a variable expression. You cannot use both 'filename' and
  52.       'filename_expr'.
  53.  
  54.       skip_expr=string -- A variable expression that if true, skips
  55.       the block. You can use this attribute to selectively include
  56.       MIME blocks.
  57.  
  58.   Examples
  59.  
  60.     Sending a file attachment::
  61.  
  62.       <dtml-sendmail>
  63.       To: <dtml-recipient>
  64.       Subject: Resume
  65.       <dtml-mime type="text/plain" encode="7bit">
  66.  
  67.       Hi, please take a look at my resume.
  68.  
  69.       <dtml-boundary type="application/octet-stream" disposition="attachment" 
  70.       encode="base64" filename_expr="resume_file.getId()"><dtml-var expr="resume_file.read()"></dtml-mime>
  71.       </dtml-sendmail>
  72.  
  73.   See Also
  74.  
  75.     "Python Library: mimetools":http://www.python.org/doc/current/lib/module-mimetools.html
  76.  
  77.  
  78.  
  79.  
  80.  
  81.